package io.gitee.chearnee.fw.sidecar.client;

import io.gitee.chearnee.fw.common.model.vo.ResultVo;
import io.gitee.chearnee.fw.sidecar.model.ApplicationRes;
import io.gitee.chearnee.fw.sidecar.model.BaseApplication;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 要实现这个请求的函数，并加入到bean里面才会生效
 *
 * @author cn
 * @version 1.0
 * @description
 * @date 12/20/2022 10:19 AM
 */
//@FeignClient(name = "plat", url = "${config.side-base-url:http://manage-plat:8080}")
public interface PlatClient {

    //    @PostMapping("/api/application/reg")
    ResultVo<List<ApplicationRes>> registerApplication(@RequestBody BaseApplication application);


    //    @PostMapping("/api/application/track")
    ResultVo<Void> action(@RequestBody Object[] application);
}
